home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form w_tips_demo
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Dialog
- Caption = "ctTips (Popup Help Tips) Demo"
- ClientHeight = 5595
- ClientLeft = 1695
- ClientTop = 2055
- ClientWidth = 6735
- Height = 6000
- Icon = "ct_tips.frx":0000
- Left = 1635
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 5595
- ScaleWidth = 6735
- ShowInTaskbar = 0 'False
- Top = 1710
- Width = 6855
- Begin VB.Frame Frame1
- Caption = "Alignment"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 1455
- Left = 3960
- TabIndex = 13
- Top = 1560
- Width = 2355
- Begin VB.OptionButton Option2
- Caption = "Under Control"
- Height = 315
- Left = 240
- TabIndex = 15
- Top = 900
- Width = 1395
- End
- Begin VB.OptionButton Option1
- Caption = "Under Mouse Icon"
- Height = 315
- Left = 240
- TabIndex = 14
- Top = 420
- Value = -1 'True
- Width = 1815
- End
- End
- Begin VB.CommandButton bt_exit
- Caption = "E&xit"
- Height = 435
- Left = 2820
- TabIndex = 7
- Top = 4920
- Width = 1095
- End
- Begin VB.CommandButton bt_balloon
- Caption = "Balloon Style"
- Height = 435
- Left = 480
- TabIndex = 4
- Top = 2700
- Width = 1275
- End
- Begin VB.CommandButton bt_red
- Caption = "Red Tips"
- Height = 435
- Left = 480
- TabIndex = 3
- Top = 2100
- Width = 1275
- End
- Begin VB.CommandButton bt_multi
- Caption = "Multi-Line"
- Height = 435
- Left = 480
- TabIndex = 2
- Top = 1500
- Width = 1275
- End
- Begin FrameLibCtl.ctFrame ctFrame1
- Height = 1275
- Left = 480
- TabIndex = 6
- Top = 3420
- Width = 5835
- _version = 65536
- _extentx = 10292
- _extenty = 2249
- _stockprops = 32
- outerborder = 5
- backcolor = 12632256
- bordercolor = 8421504
- Begin VB.Label Label5
- Caption = $"ct_tips.frx":030A
- ForeColor = &H00800000&
- Height = 915
- Left = 2400
- TabIndex = 12
- Top = 240
- Width = 3255
- End
- Begin VB.Label lbl_old
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- Height = 315
- Left = 1320
- TabIndex = 11
- Top = 780
- Width = 915
- End
- Begin VB.Label Label4
- Caption = "Old Handle"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 180
- TabIndex = 10
- Top = 780
- Width = 1035
- End
- Begin VB.Label lbl_new
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- Height = 315
- Left = 1320
- TabIndex = 9
- Top = 180
- Width = 915
- End
- Begin VB.Label Label3
- Caption = "New Handle"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 180
- TabIndex = 8
- Top = 180
- Width = 1095
- End
- End
- Begin TipsLib.ctTips ctTips1
- Height = 420
- Left = 2160
- TabIndex = 5
- Top = 4920
- Width = 420
- _version = 65536
- _extentx = 740
- _extenty = 740
- _stockprops = 68
- BeginProperty font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- textalign = 0
- parentonly = -1 'True
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- Caption = "Place mouse pointer over top one of the buttons."
- Height = 255
- Left = 1260
- TabIndex = 1
- Top = 1080
- Width = 4215
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = $"ct_tips.frx":03B0
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 855
- Left = 240
- TabIndex = 0
- Top = 180
- Width = 6315
- End
- Attribute VB_Name = "w_tips_demo"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub bt_exit_Click()
- Unload w_tips_demo
- End Sub
- Private Sub ctTips1_ItemCheck(HANDLE As Integer)
- If (HANDLE = bt_red.hWnd) Then
- ctTips1.BackColor = &HFF&
- ctTips1.ForeColor = &HFFFF&
- ctTips1.TextAlign = 3
- ctTips1.TipsType = 0
- ElseIf (HANDLE = bt_balloon.hWnd) Then
- ctTips1.BackColor = &HC0C0C0
- ctTips1.ForeColor = 0
- ctTips1.TextAlign = 3
- ctTips1.TipsType = 1
- ElseIf (HANDLE = bt_multi.hWnd) Then
- ctTips1.BackColor = &H80FFFF
- ctTips1.ForeColor = 0
- ctTips1.TextAlign = 2
- ctTips1.TipsType = 0
- Else
- ctTips1.BackColor = &H80FFFF
- ctTips1.ForeColor = 0
- ctTips1.TextAlign = 3
- ctTips1.TipsType = 0
- End If
- End Sub
- Private Sub ctTips1_ItemOver(hwndNew As Integer, hwndOld As Integer)
- lbl_new.Caption = Str(hwndNew)
- lbl_old.Caption = Str(hwndOld)
- End Sub
- Private Sub Form_Load()
- ' Center the window on the screen
- Move (Screen.Width - Width) / 2, (Screen.Height - Height) * 0.25
- ctTips1.AddTip = Str(Option1.hWnd) + "|Align Under Mouse"
- ctTips1.AddTip = Str(Option2.hWnd) + "|Align Under Control"
- ctTips1.AddTip = Str(bt_multi.hWnd) + "|This tip has" + Chr(10) + "multiple lines"
- ctTips1.AddTip = Str(bt_red.hWnd) + "|A Red Tip"
- ctTips1.AddTip = Str(bt_balloon.hWnd) + "|Thought Balloon Style"
- ctTips1.AddTip = Str(bt_exit.hWnd) + "|Exit the Demo"
- End Sub
- Private Sub Option1_Click()
- ctTips1.Alignment = 0
- End Sub
- Private Sub Option2_Click()
- ctTips1.Alignment = 1
- End Sub
-